/******************************************************************************
* @file disk.h
* @author Zohar
* @version 1.00
* @date 2019.09.21
* @brief
******************************************************************************/
#ifndef __DISK_H__
#define __DISK_H__

#include "spiFlash.h"
#include "ff.h"
#include "diskio.h"

DRESULT spiFlash_disk_read(
    BYTE *buff,   /* Data buffer to store read data */
    LBA_t sector, /* Start sector in LBA */
    UINT count    /* Number of sectors to read */
);

DRESULT spiFlash_disk_write(
    BYTE *buff,   /* Data buffer to store read data */
    LBA_t sector, /* Start sector in LBA */
    UINT count    /* Number of sectors to read */
);

DRESULT spiFlash_disk_ioctl(
    BYTE cmd,  /* Control code */
    void *buff /* Buffer to send/receive control data */
);

#endif //__DISK_H__
